<!--
 * @name: 
 * @Author: 刘大可
 * @Date: 2023-08-23 18:03:10
 * @LastEditors: 刘大可
 * @LastEditTime: 2023-11-14 10:41:23
-->
<template>
	<view v-if="sendUrl">
		<web-view :src="sendUrl" bindmessage=""></web-view>
	</view>
</template>

<script>
	import addImage from "@/colorui/components/upload/upload";
	// const undefined; // gc_school/pages/addsecond/index.js
	import siteInfo from '@/siteinfo.js';

	var app = getApp();
	export default {
		components: {
			addImage
		},
		data() {
			return {
				siteInfo,
				sendUrl:null
			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {

			let s_id=uni.getStorageSync('schoolId')
			let wxapp_id= uni.getStorageSync('sys').wxapp_id
			let u_id=uni.getStorageSync('userrs').u_id
			let url=this.fileUrl.split("/wximages")[0]
			// url ="http://localhost:8080"
			this.sendUrl = url+'/publish/#/pages/article/send?'+
			`s_id=${s_id}&wxapp_id=${wxapp_id}&u_id=${u_id}`





		},
		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},
		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},
		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},
		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},
		/**
		 * 页面上拉触底事件的处理函数
		 */
		// onShareAppMessage: function () {
		// }
		onReachBottom: function() {}
			/**
			 * 用户点击右上角分享
			 */
			,
		methods: {
			
			
		}
	};
</script>
<style>
	
</style>
